home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11702 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: nnrp.info.ucla.edu!jmartin
  2. From: jmartin@cs.ucla.edu (Jay Martin)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: 15 Mar 1996 20:18:17 GMT
  6. Organization: University of California, Los Angeles
  7. Message-ID: <4icja9$1r92@saba.info.ucla.edu>
  8. References: <00001a73+00002504@msn.com> <Pine.A32.3.91.960313165249.124278B-100000@red.weeg.uiowa.edu> <4i9ld6$m2v@rational.rational.com> <4iah20$p7k@saba.info.ucla.edu> <4ica32INN5hn@gambier.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: may.cs.ucla.edu
  10. X-Newsreader: NN version 6.5.0.b3.0 #9 (NOV)
  11.  
  12. c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  13.  
  14. >In article <4iah20$p7k@saba.info.ucla.edu>,
  15. >Jay Martin <jmartin@cs.ucla.edu> wrote:
  16. > >rlk@rational.com (Bob Kitzberger) writes:
  17. > >
  18. > >>:   make is a _general_purpose_ utility.  It _can_ be used to manage C 
  19. > >>: projects, or it can be used for a whole host of other things.  How is 
  20. > >>: this hard to understand?  Does ADA provide its own OS, its own editor and 
  21. > >>: its own hardware so that you never need to use anything else?
  22. > >
  23. > >>I don't think that anyone is having difficulty understanding your point.
  24. > >>Make is indeed general purpose, but its roots are in the C/Unix
  25. > >>culture, and those roots show.
  26. > >
  27. > >Right, make is mostly used to support development in C and other
  28. > >primitive languages.  I have seen this piece of crap utility used for
  29. > >all sort of braindead misuses.  Unix-ites seem to love to dp goofy
  30. > >things with their utilities.  Heh, I have seen people using Lex and
  31. > >Yacc to build parsers to read in simple tables.  Like swatting a bug
  32.  
  33. >Lex and Yacc are proven utilities that work. 
  34.  
  35. Lex and Yacc are braindead crap along with C and Unix.  Do they have an
  36. option to output Ada??
  37.  
  38. >The input file to Lex is far easier to debug and maintain than a hand-written
  39. >lexical analyzer.
  40. >Yacc makes you an efficient LALR(1) parser---all you do is specify a grammar
  41. >and a few C snippet ``actions''! If it was any easier, I'd fall asleep at the
  42. >keyboard.
  43.  
  44. You have become and "idiot savant" at it, congratulations,
  45. unfortunately the next guy might not reading your code. I wasn't
  46. talking about needing a grammer, I was talking with about reading in a
  47. simple table.  Its stupid to bring in two tools with two more
  48. "languages" to do something trivial that takes a page of normal code.
  49.  
  50. >A lex generated scanner is far more robust and _faster_ than scanf(),
  51. you twit, >especially if you use GNU flex -f to generate the scanner.
  52. >I have written a test program in which I compared a flex scanner against
  53. >scanf().... 
  54.  
  55. > System specific performance nonsense deleted.
  56. > Glowing accounts of the wonderfulness of Lex and Yacc deleted.
  57.  
  58. Jay
  59.